package io;

import java.io.*;

public class HomeWork2 {
    public static void main(String[] args) {
        File file = new File("D:\\Users\\zdz\\IdeaProjects\\fellow_to_other\\HomeWork\\src\\a.txt");
        try {
            OutputStream outputStream = new FileOutputStream(file,true);
            outputStream.write("你好，比特".getBytes());
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
